<?php
App::uses('AppModel', 'Model');
/**
 * Language Model
 *
 */
class Language extends AppModel {

/**
 * Display field
 *
 * @var string
 */
	public $displayField = 'name';
        
        public $validate = array(
        'name' => array( 
            'pathname' => array( 
            'rule' => array('notempty'), 
            'message' => 'Please enter a name'), 
       ),
         'code' => array( 
            'pathname' => array( 
            'rule' => array('notempty'), 
            'message' => 'Please enter a code'), 
       ), 
    ); 

}
